package com.ruoyi.controller;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.domain.ZhwyAdvancedeposit;
import com.ruoyi.dto.StatisticalanalysisDTO;
import com.ruoyi.service.StatisticalanalysisService;
import com.ruoyi.vo.StatisticalanalysisVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName StatisticalanalysisController
 * @Description TODO
 * @Author zhangzongkai
 * @Date 2024年05月10日 21:47
 * @Version 1.0
 */
@RestController
@RequestMapping("/statisticalanalysis")
public class StatisticalanalysisController extends BaseController {
    @Autowired
    private StatisticalanalysisService statisticalanalysisService;
    @Anonymous
    @GetMapping("/list")
    public TableDataInfo list(StatisticalanalysisVO statisticalanalysisVO) {
        startPage();
        List<StatisticalanalysisDTO> detail = statisticalanalysisService.findDetail(statisticalanalysisVO);
        return getDataTable(detail);
    }
}
